package appapi.dao;

import appapi.entity.Zhongjiao.SelfcheckdetailDto;
import appapi.entity.app.OnsitedetailEntity;
import appapi.entity.app.SelfcheckDetailEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

/**
 * @author  djq
 * @date 2023/5/23 19:06
 * @description: 
 */

@Mapper
public interface SelfcheckdetailMapper {

    //int deleteByPrimaryKey(Long selfRecId);

    //int insert(SelfcheckdetailDto record);

    //int insertSelective(SelfcheckdetailDto record);

    //SelfcheckdetailDto selectByPrimaryKey(Long selfRecId);

    //int updateByPrimaryKeySelective(SelfcheckdetailDto record);

    //int updateByPrimaryKey(SelfcheckdetailDto record);
    void insertList(List<SelfcheckDetailEntity> addList);

    int allowEdit(Long selfId);
    int deleteBySelfId(Long selfId);

    int deleteBySelfIds(@Param("selfIds") List<Long> selfIds);

    int insertBatch(List<SelfcheckDetailEntity> addList);

    List<SelfcheckDetailEntity> selectBySelfId(Long selfId);
}